﻿namespace Framework.Core.Domain
{
    /// <summary>
    /// 
    /// </summary>
    /// <typeparam name="IDaoT"></typeparam>
    public class DaoFactory<IDaoT>
    {
        private DaoFactory()
        {
        }

        public static IDaoT GetDao()
        {
            //通过IDaoT的类型和配置文件来得到得到具体的实现
            return (IDaoT)ObjectFactory.GetObject(typeof(IDaoT).Name);
        }
    }
}